package com.admin.bank.feignService.impl;

import com.admin.bank.feignService.BankFeignToCredit;
import com.admin.bank.service.ArElectronicService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.client.model.pojo.bank.ArElectronic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author : RulerWood
 * @Data : 2024/4/12 - 16:54
 */
@Service
public class BankFeignToCreditServiceImpl implements BankFeignToCredit {
    @Autowired
    private ArElectronicService arElectronicService;
    @Override
    public ArElectronic applyCreditCard(Long uid) {
        QueryWrapper<ArElectronic> arElectronicQueryWrapper = new QueryWrapper<>();
        arElectronicQueryWrapper.eq("uid",uid);
        return this.arElectronicService.getOne(arElectronicQueryWrapper);
    }
}
